<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script>
    var person = {
        name: "zhangsan",
        age: 23,
        eat: function () {
            alert("干饭~");
        }
    }

    alert(person.name);
    alert(person.age);

    person.eat;

</script>

</body>
</html>